package com.mrobuy.jdvc.entity;

import com.gavel.annotation.FieldMeta;
import com.gavel.annotation.TableMeta;
import com.gavel.database.SQLExecutor;

@TableMeta(name = "JD_CATEGORY", title = "京东类目")
public class JDCategory {

    @FieldMeta(name = "ID", title = "ID", length = 32, primary = true)
    private String id;

    @FieldMeta(name = "CODE", title = "编码", length = 20)
    private String code;

    @FieldMeta(name = "CID", title = "类目ID")
    private Integer cid;

    @FieldMeta(name = "PID", title = "上级类目ID")
    private Integer pid;

    @FieldMeta(name = "NAME", title = "类目名称", length = 50)
    private String name;

    @FieldMeta(name = "LEVEL", title = "类目层级")
    private Integer level;

    @FieldMeta(name = "SEQ", title = "排序")
    private Integer seq;

    @FieldMeta(name = "FEATURE", title = "类目特殊属性", length = 2000)
    private String feature;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }

    public String getFeature() {
        return feature;
    }

    public void setFeature(String feature) {
        this.feature = feature;
    }

    public static void main(String[] args) throws Exception {
        SQLExecutor.createTable(JDCategory.class);
    }

}
